/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Database;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author Dion
 */
public class CreateTabelPemesanan {

    /**
     * @param args the command line arguments
     */
   public static void main(String[] args) throws SQLException, FileNotFoundException, IOException {
        Connection con;
        con = Koneksi.open();
        Statement stat = con.createStatement();

        String data = "create table PEMESANAN(TANGGAL_PESAN varchar2(30),"
                + "ID_PESAN varchar2(30),"+ "ID_BARANG varchar2(10),"+"ID_MEMBER varchar2(20),"
                +"JUMLAH_PESAN varchar2(20),"+"STATUS varchar2(15))";
        stat.executeQuery(data);
        System.out.println("table PEMESANAN created");   
    }
}